﻿<Form Model="@model"
      LabelColSpan="8"
      OnFinish="SubmitForm"
      WrapperColSpan="16">
    <Row Gutter="24">
        <GridCol Span="24">
            <FormItem Label="父级">
                <CodeTemplateTreeSelect @bind-Value="@context.Parentid"></CodeTemplateTreeSelect>
            </FormItem>
        </GridCol>
        @*
        代码生成器会覆盖标记之间的内容。*@
        @*CodeGenerator start*@
        <GridCol Span="24">
            <FormItem Label="用户名">
                <Input Disabled="!IsAdd" @bind-Value="@context.Id" />
            </FormItem>
        </GridCol>
        <GridCol Span="24">
            <FormItem Label="手机号">
                <AntDesign.Input @bind-Value="@context.Notes" />
            </FormItem>
        </GridCol>
        @*CodeGenerator end*@
    </Row>
    <FormItem WrapperColOffset="8" WrapperColSpan="16">
        <Button Loading="@btnLoading" Disabled="@btnLoading" HtmlType="submit" Type="@ButtonType.Primary">
            确定
        </Button>
        <Button OnClick="async()=>await ReturnAsync(null)">
            取消
        </Button>
    </FormItem>
</Form>
